
public class DatabaseSupportStubs {
	
	//gets all the bank accounts for a userID, if permissions are clerk or admin, all accounts are returned 
		static public BankAccount[] getAccounts(int userID,int permissions){
			BankAccount acct1=new BankAccount(111111,782279498, 1,"Mark A Bauer","Checking1 Test",0.0,0.0);
			BankAccount acct2=new BankAccount(222222,782279498, 1,"Mark A Bauer","Checking2 Test",0.0,0.0);
			BankAccount acct3=new BankAccount(333333,782279498, 2,"Mark A Bauer","Savings Test",0.0,0.0);
			BankAccount[] a= {acct1,acct2,acct3};
			return a;
		}
	
	//updates an account to match every field in the BankAccount parameter
	static public boolean updateAccount(BankAccount account, int accountNum){
		return true;
	}
	
	//Login Support
	
	//checks to see if username is in the DB and that the password matches
	static public boolean checkCreds(String username, String password){
		return true;
	}
	
	//retrives the permission code for a userId
		// 0 = Invalid
		// 1 = Admin
		// 2 = Teller
		// 3 = User
	static public int getPermissions(String username){
		return 1;
	}
	
	//gets the userId given the username
	static public int getUserID(String username){
		return 782279498;
	}
}
